#ifndef __EVENTPP_TCP_HANDLER_H_
#define __EVENTPP_TCP_HANDLER_H_

struct evbuffer;

namespace eventpp
{
  class tcp_connection;

  struct tcp_handler {
    virtual ~tcp_handler() {}
    virtual void on_event(short what, tcp_connection * conn) {}
    virtual void on_accepted( tcp_connection * conn) {}
    virtual void on_connected( tcp_connection * conn) {}
    virtual void on_read(tcp_connection * conn) {}
    virtual void on_write(tcp_connection * conn) {}
    virtual void on_closed( tcp_connection * conn ) {}
  };
}

#endif
